package com.etc.dao;

import java.util.List;

import com.etc.entity.AnsMessage;

public interface AnsMessageDao {
		public int answerMessage(AnsMessage ansmessage);
		
		public List<AnsMessage> findTitleAnsMessage(int ansid);


		public int deleteAnsAnsMessage(int ansid);

		public int deleteAnsMessage(int id);
		
		public List<AnsMessage> myAns(String username,int pageIndex,int pageSize);
		
		public List<AnsMessage> mySearch(String username,String search,int pageIndex,int pageSize);

		public int closeAnsMessage(int id);

		public int openAnsMessage(int id);

		public List<AnsMessage> findUserAnsMessage(String username);

		public List<AnsMessage> searchAllAnsMessage();
		
		public Long countAll();
		
		public Long countAllUser(String username);
		
		
}
